Release 10.1A: OpenEdge Development:
ADM Reference


calltablett.p

The calltablett.p single-point entry call provides the functionality of calltable.p along with the ability to pass temp-tables. This is similar to using "callstringtt.p." As with callstringtt.p, you can use the callttparam.i include file to simplify passing temp-tables. The code in Example A–5 illustrates the call done using the callstringtt.p call and calltablett.p.

Example A–5: Using callstringtt.p to make a call 
DEFINE VARIABLE hTT AS HANDLE EXTENT 64 NO-UNDO. 
/* Include the temp-table definition */ 
{src/adm2/calltables.i 
 &PARAM-TABLE-TYPE = "4" 
 &PARAM-TABLE-NAME = "ttCallParam"} 
/* Create the parameter values into the parameter value table */ 
  CREATE ttCallParam. 
  ASSIGN 
    ttCallParam.cParamName   = "phCustomerTempTable" 
    ttCallParam.cValue       = "T:01" 
  . 
  CREATE ttCallParam. 
  ASSIGN 
    ttCallParam.cParamName   = "pcSessionID" 
    ttCallParam.cValue       = cSessionID 
  . 
  CREATE ttCallParam. 
  ASSIGN 
    ttCallParam.cParamName   = "phOrderBuffer" 
    ttCallParam.cValue       = "B:02" 
  . 
  hTT[01] = TEMP-TABLE ttCust:HANDLE. 
  HTT[02] = TEMP-TABLE ttOrder:HANDLE 
RUN adm2/calltablett.p 
  (("obtainCustomerData",  /* call to make */ 
   "customerbl.p",        /* manager to use */ 
   INPUT TEMP-TABLE ttCallParam:HANDLE,/* Handle of temp-table */ 
   INPUT-OUTPUT TABLE-HANDLE hTT,  /* unknown - no table handle */ 
   "",                    /* Tables to skip */ 
   {src/adm2/callttparam.i 
    &ARRAYFIELD = "hTT"}   
   ). 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095